using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class BtnAnim_Scale1 : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
    public Scale1AnimInspector down;
    public Scale1AnimInspector up1;
    public Scale1AnimInspector up2;

    public void OnPointerDown(PointerEventData eventData)
    {
        transform.DOScale(down.scale, down.time).SetEase(down.ease);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        transform.DOScale(up1.scale, up1.time).SetEase(up1.ease);
        transform.DOScale(up2.scale, up2.time).SetEase(up2.ease)
            .SetDelay(up1.time);

    }

    [Serializable]
    public class Scale1AnimInspector
    {
        public Vector3 scale;
        public float time;
        public Ease ease;
    }
}
